package com.optimatch.ui.view.customComponents.pages;

import javax.swing.JFrame;
import javax.swing.JTabbedPane;

import com.optimatch.ui.view.customComponents.pages.creation_equipes.EquipesPanel;

public class NavigationPanel extends JTabbedPane {

	private EquipesPanel equipesPanel;
	private ContraintesPanel contraintesPanel;
	private ResultatPanel resoudrePanel;


	public NavigationPanel() {
		super();
		addTabs();
	}

	private void addTabs() {
		equipesPanel = new EquipesPanel();
		this.addTab("Equipes", equipesPanel);

		contraintesPanel = new ContraintesPanel();
		this.addTab("Contraintes",contraintesPanel);

		//TODO : decider si on garde un resoudre panel ou non
		resoudrePanel = new ResultatPanel();
		this.addTab("Résoudre",resoudrePanel);
	}

	public EquipesPanel getEquipesPanel() {
		return equipesPanel;
	}

	public ContraintesPanel getContraintesPanel() {
		return contraintesPanel;
	}

	public ResultatPanel getResoudrePanel() {
		return resoudrePanel;
	}

	public static void main(String args[]) {
		NavigationPanel p = new NavigationPanel();
		JFrame f = new JFrame();
		f.add(p);
		f.setVisible(true);
	}


}